// 自动生成模板LsGood
package good

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// lsGood表 结构体  LsGood
type LsGood struct {
	global.GVA_MODEL
	GoodsName         *string  `json:"goodsName" form:"goodsName" gorm:"column:goods_name;comment:商品名称;size:30;" binding:"required"`              //商品名称
	GoodsIntroduction *string  `json:"goodsIntroduction" form:"goodsIntroduction" gorm:"column:goods_introduction;comment:商品简介;size:50;"`         //商品简介
	GoodsIntro        *string  `json:"goodsIntro" form:"goodsIntro" gorm:"column:goods_intro;comment:详细描述;size:100;" binding:"required"`          //详细描述
	GoodsType         *int     `json:"goodsType" form:"goodsType" gorm:"column:goods_type;comment:商品分类;size:20;" binding:"required"`              //商品分类
	GoodsUint         *string  `json:"goodsUint" form:"goodsUint" gorm:"column:goods_uint;comment:单位;size:20;" binding:"required"`                //单位
	GoodsWeight       *string  `json:"goodsWeight" form:"goodsWeight" gorm:"column:goods_weight;comment:重量;size:20;"`                             //重量
	GoodsInventory    *int     `json:"goodsInventory" form:"goodsInventory" gorm:"column:goods_inventory;comment:库存;size:10;" binding:"required"` //库存
	GoodsInventorys   *int     `json:"goodsInventorys" form:"goodsInventorys" gorm:"column:goods_inventorys;comment:库存不足数量;size:10;"`             //库存不足数量
	GoodsPrice        *float64 `json:"goodsPrice" form:"goodsPrice" gorm:"column:goods_price;comment:商品价格;size:10;" binding:"required"`           //商品价格
	IsSale            *string  `json:"isSale" form:"isSale" gorm:"column:is_sale;comment:是否上架;size:20;" binding:"required"`                       //是否上架
	GoodsImg          *string  `json:"goodsImg" form:"goodsImg" gorm:"column:goods_img;comment:商品图片;size:100;" binding:"required"`                //商品图片
	CreatedBy         uint     `gorm:"column:created_by;comment:创建者"`
	UpdatedBy         uint     `gorm:"column:updated_by;comment:更新者"`
	DeletedBy         uint     `gorm:"column:deleted_by;comment:删除者"`
}

// TableName lsGood表 LsGood自定义表名 ls_good
func (LsGood) TableName() string {
	return "ls_good"
}
